package com.kfgj.hkp.dao.history.impl;

import com.kfgj.hkp.common.dataaccess.mybatis.AbstractMyBatisDao;
import com.kfgj.hkp.dao.history.IAddressBookDbDao;
import com.kfgj.hkp.entity.history.AddressBookEntity;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * @Description dao实现类
 * @Auth xpp
 * @Date 2018/12/8
 * @Version 1.0
 */
@Repository
public class AddressBookDbDaoImpl extends AbstractMyBatisDao<AddressBookEntity,Long> implements IAddressBookDbDao {

    @Override
    public int batchDeleteByEmpCode(Map<String, Object> param) {
        return getSqlSession().delete(this.mapperNamespace + "batchDeletedByEmpCode",param);
    }

    @Override
    public int countByCreateTime(Map<String, Object> map) {
        return this.getSqlSession().selectOne(this.mapperNamespace + "countByCreateTime", map);
    }

}
